package com.lkd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lkd.vo.PayVO;
import com.lkd.entity.OrderEntity;

import java.util.concurrent.ExecutionException;

/**
 * @author lenovo
 */
public interface OrderService extends IService<OrderEntity> {


    /**
     * 通过订单编号获取订单实体
     *
     * @param orderNo
     * @return
     */
    OrderEntity getByOrderNo(String orderNo);

    /**
     * 创建订单
     *
     * @param payVO
     * @return
     */
    OrderEntity createOrderTask(PayVO payVO) throws ExecutionException, InterruptedException;


    void vendOut(OrderEntity orderEntity);
}
